package com.cet.designpatterns.bridge;

/**
 * @program: algorithm
 * @description: RefinedAbstraction
 * @author: 陈恩涛
 * @create: 2021-09-08 23:10
 **/
public class FoldedPhone extends Phone {

    public FoldedPhone(Brand brand) {
        super(brand);
    }

    @Override
    public void open() {
        System.out.println("折叠式手机");
        brand.open();
    }

    @Override
    public void close() {
        System.out.println("折叠式手机");
        brand.close();
    }

    @Override
    public void call() {
        System.out.println("折叠式手机");
        brand.call();
    }
}
